[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
XPferror()
Return error code of one of the binary file functions
------------------------------------------------------------------------------
Function: XPferror()
This function ould be called after any of the functions
in the "See Also" list have been called. It returns the DOS
Error code for the last call, or 0 when there was no error.
It works much like Clipper's XPferror(), except that we need
another for our own functions.
Syntax: XPferror() --> nDosErrCode
Arguments: None.
Returns: The DOS Error code for the last call. Possible error
codes are one of the following:
0 No Error
2 File not found
3 Path not found (subtle difference with 2)
4 No more handles available
5 Access denied (read-only file, networks..)
6 Invalid handle
15 Invalid drive
32 File sharing violation
33 File locking violation (region already locked)
80 File exists (XPfcreateNew())
See the XPdosMsg() function in the Library for more
more information on Error codes.
Usage: h := fcreateNew('A_FILE')
if XPferror() = 80
? "File already exists!"
end
See Also:
XPfcreateNew()
XPfunique()
XPfdate()
XPftime()
XPflock()
XPfcommit()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson